home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- IF %4==has GOTO nolabel
- IF NOT %5==%DISKID% GOTO WRONG
- ECHO Yes, the disk in drive %3: is labeled "%DISKID%".
- ECHO This is just a sample VOLUME.BAT. Create your own
- ECHO version that DOES something when the disk is verified.
- GOTO END
- :nolabel
- ECHO The disk you put in drive %3: has no label.
- ECHO Put the disk labelled "%DISKID%" in drive %3: and try again.
- GOTO END
- :WRONG
- ECHO The disk in drive %3: is labelled "%5", not "%DISKID%".
- ECHO Put the disk labelled "%DISKID%" in drive %3: and try again.
- :END
- DEL CHEKLABL.BAT